package com.lc.hongtai.conn;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 4/22/2016.
 */
@HttpInlet("user/borrow_in_cancel")
public class JsonBorrowingCancel extends HYAsyGet <JsonBorrowingCancel.Info>{
    public String access_token, uid, id;

    public JsonBorrowingCancel(String access_token, String uid, String id, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;
        this.uid = uid;
        this.id = id;
    }

    @Override
    protected Info parser(JSONObject object) {
        Info info=new Info();

        Gson gson=new Gson();

        info=gson.fromJson(object.toString(),Info.class);
        TOAST = object.optString("tips");
        return info;
    }

    public static class Info {
        /* {
             "tips": "出错，如果您正在撤回的是还未初审的标，请重试，如已经初审，则不能撤回",
                 "status": "0"
         }*/
        public static String tips;
        public static String status;
    }


 /*   @Override
    protected Info parser(JSONObject object) {

        if (object.optString("status").equals("1")) {

            TOAST = object.optString("tips");

            return "";

        }
*/


}